package com.byq.mm.foundation.cluster.datatype;


import android.util.Base64;

public class ByteArrayValue implements AttributeValue {
	byte[] value;
	public ByteArrayValue(byte[] data) {
		value = data;
	}
	public ByteArrayValue() {
	}
	@Override
	public void decode(String s) {

				value = Base64.decode(s,0);

	}
	public byte[] getValue(){
		return value;
	}
	@Override
	public String encode() {
		return new String(Base64.encode(value,0));
	}

}
